3 struct EvolutionPicker: View {
5 @Binding var selectedEvolution: StageType
8 Picker("Evolution", selection: $selectedEvolution) {
9 ForEach(StageType.types) { stage in
10 Text(Stage.title(stage)).font(.theme.body).tag(stage).padding(4.0)
13 ForEach(StageType.characteristics) { stage in
14 Text(Stage.title(stage)).font(.theme.body).tag(stage).padding(4.0).font(.theme.body)
17 ForEach(StageType.properties) { stage in
18 Text(Stage.title(stage)).font(.theme.body).tag(stage).padding(4.0)
21 ForEach(StageType.custom) { stage in
22 Text(Stage.title(stage)).font(.theme.body).tag(stage).padding(4.0)
24 }.font(.theme.body).padding(.horizontal, 8.0).padding(.vertical, 4.0)
29 let selectedEvolution: StageType = .behavior
30 EvolutionPicker(selectedEvolution: .constant(selectedEvolution))